package com.junyidao.game.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by zzh on 2016/9/26.
 * 文件描述 ：日期工具类
 */
public class DateUtil {

    public static String format(Date date, String pattern) {
        SimpleDateFormat sdf = new SimpleDateFormat(pattern);
        String str = sdf.format(date);
        return str;
    }

}
